package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author dyqstart
 * @create 2021-09-03-17:25
 * @since 1.0.0
 */
public interface CustomerDao {

    Integer getCount();

    List<Customer> getCustomerList(@Param("page") Integer page,
                                   @Param("rows") Integer rows,
                                   @Param("customerName") String customerName);

    void saveCustomer(@Param("customer") Customer customer);

    void updateCustomer(@Param("customer") Customer customer,
                        @Param("customerId") Integer customerId);

    void deleteCustomerById(@Param("ids") String[] split);

}
